<template>
	<view class="moni_view">
		<view class="x4_t">
			<view class="t_table_x4" v-if="dataList.length > 0">
				<view class="tr_d hed_d">
					<view class="c1">
						学校名称
					</view>
					<view class="c2">
						专业名称
					</view>
					<view class="c3">
						招生人数
					</view>
				</view>
				<view class="tr_d hed_t" v-for="item in dataList">
					<view class="c1">
						{{item.name}}
					</view>
					<view class="c2">
						{{item.major_name}}
					</view>
					<view class="c3">
						{{item.plan_num}}
					</view>
				</view>
				
			</view>
			<view class="pging_sy" v-if="dataList.length == 0">
				<image src="../../static/nopage.png" class="doing_img"></image>
				<view class="do_text">
					暂无符合的学校！
				</view>
			</view>
		</view>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				dataList:[],
				eid:""
			};
		},
		onLoad(ph) {
			
			if(ph.eid){
				this.eid = ph.eid
			}
			this.getData();
		},
		methods:{
			getData(){
				this.$queryApi("post","/school.order/imitate", {
					eid:this.eid
				}, res => {
					console.log(res,"模拟评估")
					this.dataList = res.data.data;
				},"","noMsg")
			}
		}
	}
</script>

<style lang="scss">
.moni_view{
	min-height: 100vh;
	background-color: #fff;
	padding: 40rpx 30rpx 60rpx;
	box-sizing: border-box;
	.x4_t{
		.t_table_x4{
			.tr_d{
				display: flex;
				.c1{
					width: 42%;
				}
				.c2{
					flex:1;
					text-align: center;
				}
				.c3{
					text-align: center;
					width: 18%;
				}
				&.hed_d{
					font-size: 28rpx;
					color: #999999;
					padding: 0rpx 0 10rpx;
				}
				&.hed_t{
					font-size: 28rpx;
					padding: 30rpx 0;
					border-bottom: 1rpx solid #F6F6F6;
				}
			}
		}
	}
}
</style>
